import { defineStore } from "pinia"
interface IState {
    setVenuesPageList:Array<any>;
    setVenuesaddList: Array<any>;
    setVenuesdeleteList:Array<any>;
}
const mainStore = defineStore("main", {
    state:():IState=> {
        return {
            setVenuesPageList: [],//查询
            setVenuesaddList:[],
            setVenuesdeleteList:[], 
        };
    },
    persist: {
        enabled: true, // 开启持久化保存
    },
    actions: {
        setList(params:Array<any>) {
            console.log(params);
             this.setVenuesPageList = params;
        },
        addList(params:Array<any>) {
            console.log(params);
             this.setVenuesaddList = params;
        },
        deleteList(params:Array<any>) {
            console.log(params);
             this.setVenuesdeleteList = params;
        },
    },
    getters: {
        getVenuesPageList():Array<any> {
            return this.setVenuesPageList;
        },
        getVenuesaddList():Array<any> {
            return this.setVenuesaddList;
        },
        getVenuesdeleteList():Array<any> {
            return this.setVenuesdeleteList;
        },
    }
})
export default mainStore;